Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development


Cache versus a shared cache

There are two important notions of how the cache should operate when confronted with multiple instances of one SDO. The first notion is simple caching. Here, the first instance of an SDO creates a record in the cache, and that record will remain in the cache for the entire session or, optionally, for a specified period of time. Each subsequent instance of the SDO ignores existing cache records and creates its own cache record. This essentially means that each new instance of the SDO will hit the AppServer for its own result set and store it in the cache. This is not a common use case.

Simple caching is enabled and configured with the CacheDuration property of the SDO. This property accepts the following values:

The second notion is called sharing. If a cache is shared, then the first instance of the SDO will create the cache record, and each subsequent instance will use the data in that cache record. When all instances of the SDO are closed, the cache record is also destroyed. The first new instance of the SDO will create a new cache record.

Shared caching is enabled with the logical Shared property of the SDO:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095